package mscloud.config.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;

/**
 * @Datetime: 2025年07月23日20:23
 * @Author: Eleven52AC
 * @Description: 验证码配置
 */
@Configuration
@RefreshScope
@ConfigurationProperties(prefix = "verify.captcha")
public class CaptchaProperties {

    /**
     * 验证码开关
     */
    private Boolean enabled;

    /**
     * 验证码类型
     */
    private String type;

    public Boolean getEnabled() {
        return enabled;
    }

    public CaptchaProperties setEnabled(Boolean enabled) {
        this.enabled = enabled;
        return this;
    }

    public String getType() {
        return type;
    }

    public CaptchaProperties setType(String type) {
        this.type = type;
        return this;
    }
}
